package com.oocl.o2o.client.vo;
/**
 * @description: 和前台的购物车信息相对应
 * @author  XIEMI2
 * @date Aug 14, 2017 10:40:00 AM
 * @version 1.0
 */

public class OrderItemVO {

	private String id;
	private int total; //数量
	private String name; //食品名字
	private double price; //价格
	private String img; //图片的相对路径
	private String merchantName; //商家的名字
	private double subTotalMoney; //单条目的总价
	
	
	public OrderItemVO() {
		
	}
	
	
	public OrderItemVO(String id, int total, String name, double price, String img, String merchantName, double subTotalMoney) {
		super();
		this.id = id;
		this.total = total;
		this.name = name;
		this.price = price;
		this.img = img;
		this.merchantName = merchantName;
		this.subTotalMoney = subTotalMoney;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getMerchantName() {
		return merchantName;
	}
	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}
	public double getSubTotalMoney() {
		return subTotalMoney;
	}
	public void setSubTotalMoney(double subTotalMoney) {
		this.subTotalMoney = subTotalMoney;
	}

	@Override
	public String toString() {
		return "OrderItemVO [id=" + id + ", total=" + total + ", name=" + name + ", price=" + price + ", img=" + img + ", merchantName=" + merchantName + ", subTotalMoney=" + subTotalMoney + "]";
	}
	
}


